from ultralytics import YOLO

model = YOLO(r'D:\Desktop\Barcode\best.pt')

result = model.predict(source=r"D:\Desktop\Barcode\images",
                       save_crop = True,
              )
